export default function eachArr(array) {
  console.log('array', array)
  array.forEach(i => {
    if (i.children !== null && i.children.length > 0) {
      i.children.forEach(j => {
        if (j.children !== null && j.children.length > 0) {
          j.children.forEach(k => {

            k.children.forEach(l => {
              // console.log("k.children", k.children)
              l.children = []
            })
          })
        }
      })
    }
  })
  return array
}